From d043ecebc5089e7a393b35ca81dce253d257dd70 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Fri, 23 Mar 2007 17:42:08 +0000 Subject: [PATCH] Ignore exceptions in the get_all_methods call. Signed-off-by: Ewan Mellor --- tools/python/xen/xm/main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 2f18ae2304..35930a529a 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -579,9 +579,12 @@ class Shell(cmd.Cmd): cmd.Cmd.__init__(self) self.prompt = "xm> " if serverType == SERVER_XEN_API: - res = server.xenapi._UNSUPPORTED_list_all_methods() - for f in res: - setattr(Shell, 'do_' + f + ' ', self.default) + try: + res = server.xenapi._UNSUPPORTED_list_all_methods() + for f in res: + setattr(Shell, 'do_' + f + ' ', self.default) + except: + pass def preloop(self): cmd.Cmd.preloop(self) -- 2.30.2